package edu.sctu.zhuyingzhi.month201505.day20150524.homeworkV1;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by user11 on 2015/5/17.
 */
public class Students {



    private List<Student> list1 = new ArrayList<>();
    private List<Student> list2 = new ArrayList<>();
    private  List<Student> list3 = new ArrayList<>();
    private  List<Student> list4 = new ArrayList<>();
    private  List<Student> list5 = new ArrayList<>();

    public Students(){

        List course = new TextCourse().TextCourse();
        for (int i = 0; i < 5; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10086+i,"朱英志"+i,18,"男","成都",60+i,corseList);
            list1.add(student);
        }

        for (int i = 0; i < 5; i++) {
            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10091+i,"夏磊"+i,22,"男","成都",50+i,corseList);
            list2.add(student);
        }

        for (int i = 0; i < 5; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10096+i,"吴佳怡"+i,19,"女","成都",80+i,corseList);
            list3.add(student);
        }

        for (int i = 0; i < 5; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10101+i,"周梦雪"+i,20,"女","成都",70+i,corseList);
            list4.add(student);
        }

        for (int i = 0; i < 5; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10106+i,"郑森文"+i,19,"女","成都",90+i,corseList);
            list5.add(student);
        }


    }

    public List<Student> get1(){
        return list1;
    }

    public List<Student> get2(){
        return list2;
    }

    public List<Student> get3(){
        return list3;
    }

    public List<Student> get4(){
        return list4;
    }

    public List<Student> get5(){
        return list5;
    }


}
